ScxV6Object.InstanceID Method

Returns the object identifier of the template instance containing this object.

Remarks

Use InstanceID to obtain the object identifier of the template instance that contains this object. If this object is not part of a template instance, InstanceID returns zero.

Example:

The following example written in VB.NET gets the instance ID of an object and writes it to the console.

Dim Svr As ScxV6DbClient.ScxV6Server

' Connect to the server

Svr = New ScxV6DbClient.ScxV6Server

Svr.Connect("MAIN", "", "")

Dim Obj As ScxV6DbClient.ScxV6Object

Obj = Svr.FindObject("Group.Point Template.Point")

Console.WriteLine("Template ID of point is {0}", Obj.TemplateID)

' Disconnect

Svr.Disconnect()

This produces the following output:

Template ID of point is 72725


Disclaimer

Geo SCADA Expert 2020